# Define here the models for your scraped items
#
# See documentation in:
# https://docs.scrapy.org/en/latest/topics/items.html

import scrapy


class PoetryItem(scrapy.Item):
    # define the fields for your item here like:
    #标题
    title = scrapy.Field()
    #年代
    years = scrapy.Field()
    #作者
    author = scrapy.Field()
    #内容
    content = scrapy.Field()
    #译文和注释
    translate = scrapy.Field()
    #采集时间
    grab_time = scrapy.Field()
    #采集网址
    grab_url = scrapy.Field()
    pass

class AuthorItem(scrapy.Item):
    # define the fields for your item here like:
    #名字
    name = scrapy.Field()
    #作家照片
    image = scrapy.Field()
    #关联作品
    opus = scrapy.Field()
    #朝代
    years = scrapy.Field()
    #介绍
    intro = scrapy.Field()
    #人物关系
    relation = scrapy.Field()
    #采集时间
    grab_time = scrapy.Field()
    #采集网址
    grab_url = scrapy.Field()
    pass


class BookItem(scrapy.Item):
    table_name = scrapy.Field()
    title = scrapy.Field()
    author = scrapy.Field()
    summary = scrapy.Field()
    years = scrapy.Field()
    category = scrapy.Field()
    tags = scrapy.Field()
    grab_time = scrapy.Field()
    grab_url = scrapy.Field()
    pass

class ChapterItem(scrapy.Item):
    table_name = scrapy.Field()
    title = scrapy.Field()
    content = scrapy.Field()
    book_url = scrapy.Field()
    parent_url = scrapy.Field()
    sort = scrapy.Field()
    grab_time = scrapy.Field()
    grab_url = scrapy.Field()
    pass